package com.qinghe.pro.entity.article;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class Column implements Serializable {
	private static final long serialVersionUID = 8779517081558873227L;
	public static final Integer STATUS_NORMAL = 1;// 普通
	public static final Integer STATUS_SLIDER = 2;// 幻灯片
	public static final Integer STATUS_RIGHT = 3;// 右侧新闻

	private Integer id;

    private String name;

    private String priority;

    private Column parent;

    private Integer type;// 1普通、2幻灯片、3右侧新闻

	private List<Column> children = new ArrayList<Column>();

	public Column() {
	}

	public Column(Integer id) {
		this.id = id;
	}

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getPriority() {
        return priority;
    }

    public void setPriority(String priority) {
        this.priority = priority == null ? null : priority.trim();
    }

	public Column getParent() {
		return parent;
	}

	public void setParent(Column parent) {
		this.parent = parent;
	}

	public List<Column> getChildren() {
		return children;
	}

	public void setChildren(List<Column> children) {
		this.children = children;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}
}